<html>
<head><meta charset="utf-8"><title>how to debug compiler with lldb? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/how.20to.20debug.20compiler.20with.20lldb.3F.html">how to debug compiler with lldb?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222402426"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/how%20to%20debug%20compiler%20with%20lldb%3F/near/222402426" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kevin Tran <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/how.20to.20debug.20compiler.20with.20lldb.3F.html#222402426">(Jan 12 2021 at 08:23)</a>:</h4>
<p>how do i debug the compiler when running <code>./x.py test path/to/my/test.rs</code>? what executable would i provide to lldb?</p>



<a name="222402517"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/how%20to%20debug%20compiler%20with%20lldb%3F/near/222402517" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kevin Tran <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/how.20to.20debug.20compiler.20with.20lldb.3F.html#222402517">(Jan 12 2021 at 08:24)</a>:</h4>
<p>What executable could I provide to lldb when trying to debug something like <code>./x.py test path/to/my/test.rs</code>?</p>



<a name="222413341"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/how%20to%20debug%20compiler%20with%20lldb%3F/near/222413341" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/how.20to.20debug.20compiler.20with.20lldb.3F.html#222413341">(Jan 12 2021 at 10:30)</a>:</h4>
<p>Try running <code>./x.py test -vvv path/to/my/test.rs</code>. Maybe it will then show the exact command it uses.</p>



<a name="222430812"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/how%20to%20debug%20compiler%20with%20lldb%3F/near/222430812" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/how.20to.20debug.20compiler.20with.20lldb.3F.html#222430812">(Jan 12 2021 at 13:36)</a>:</h4>
<p><span class="user-mention" data-user-id="351526">@Kevin Tran</span> if you pass <code>-v</code> to x.py it will show you the full command line it's running, which should have <code>stage1/bin/rustc</code> somewhere in there. Copy paste that and it should work.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>